package com.packer.service.impl;

import com.packer.dao.ShopMapper;
import com.packer.pojo.Shop;
import com.packer.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service("shopService")
public class ShopServiceImpl implements IShopService {

	@Autowired
	private ShopMapper shopMapper;


	@Override
	public Shop getShopById(int id) {
		System.out.print("get shop by id");
		return shopMapper.selectByPrimaryKey(id);
	}

	@Override
	public void insertShop(Shop shop) {
		shopMapper.insert(shop);
	}
}
